home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / complib / slaed3.z / slaed3
Text File  |  1998-10-30  |  6KB  |  199 lines

  1.  
  2.  
  3.  
  4. SSSSLLLLAAAAEEEEDDDD3333((((3333FFFF))))                                                          SSSSLLLLAAAAEEEEDDDD3333((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SLAED3 - find the roots of the secular equation, as defined by the values
  10.      in D, W, and RHO, between KSTART and KSTOP
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE SLAED3( K, KSTART, KSTOP, N, D, Q, LDQ, RHO, CUTPNT, DLAMDA,
  14.                         Q2, LDQ2, INDXC, CTOT, W, S, LDS, INFO )
  15.  
  16.          INTEGER        CUTPNT, INFO, K, KSTART, KSTOP, LDQ, LDQ2, LDS, N
  17.  
  18.          REAL           RHO
  19.  
  20.          INTEGER        CTOT( * ), INDXC( * )
  21.  
  22.          REAL           D( * ), DLAMDA( * ), Q( LDQ, * ), Q2( LDQ2, * ), S(
  23.                         LDS, * ), W( * )
  24.  
  25. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  26.      SLAED3 finds the roots of the secular equation, as defined by the values
  27.      in D, W, and RHO, between KSTART and KSTOP.  It makes the appropriate
  28.      calls to SLAED4 and then updates the eigenvectors by multiplying the
  29.      matrix of eigenvectors of the pair of eigensystems being combined by the
  30.      matrix of eigenvectors of the K-by-K system which is solved here.
  31.  
  32.      This code makes very mild assumptions about floating point arithmetic. It
  33.      will work on machines with a guard digit in add/subtract, or on those
  34.      binary machines without guard digits which subtract like the Cray X-MP,
  35.      Cray Y-MP, Cray C-90, or Cray-2.  It could conceivably fail on
  36.      hexadecimal or decimal machines without guard digits, but we know of
  37.      none.
  38.  
  39.  
  40. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  41.      K       (input) INTEGER
  42.              The number of terms in the rational function to be solved by
  43.              SLAED4.  K >= 0.
  44.  
  45.      KSTART  (input) INTEGER
  46.              KSTOP   (input) INTEGER The updated eigenvalues Lambda(I), KSTART
  47.              <= I <= KSTOP are to be computed.  1 <= KSTART <= KSTOP <= K.
  48.  
  49.      N       (input) INTEGER
  50.              The number of rows and columns in the Q matrix.  N >= K
  51.              (deflation may result in N>K).
  52.  
  53.      D       (output) REAL array, dimension (N)
  54.              D(I) contains the updated eigenvalues for KSTART <= I <= KSTOP.
  55.  
  56.      Q       (output) REAL array, dimension (LDQ,N)
  57.              Initially the first K columns are used as workspace.  On output
  58.              the columns KSTART to KSTOP contain the updated eigenvectors.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSLLLLAAAAEEEEDDDD3333((((3333FFFF))))                                                          SSSSLLLLAAAAEEEEDDDD3333((((3333FFFF))))
  71.  
  72.  
  73.  
  74.      LDQ     (input) INTEGER
  75.              The leading dimension of the array Q.  LDQ >= max(1,N).
  76.  
  77.      RHO     (input) REAL
  78.              The value of the parameter in the rank one update equation.  RHO
  79.              >= 0 required.
  80.  
  81.      CUTPNT  (input) INTEGER
  82.              The location of the last eigenvalue in the leading submatrix.
  83.              min(1,N) <= CUTPNT <= N.
  84.  
  85.      DLAMDA  (input/output) REAL array, dimension (K)
  86.              The first K elements of this array contain the old roots of the
  87.              deflated updating problem.  These are the poles of the secular
  88.              equation. May be changed on output by having lowest order bit set
  89.              to zero on Cray X-MP, Cray Y-MP, Cray-2, or Cray C-90, as
  90.              described above.
  91.  
  92.      Q2      (input) REAL array, dimension (LDQ2, N)
  93.              The first K columns of this matrix contain the non-deflated
  94.              eigenvectors for the split problem.
  95.  
  96.      LDQ2    (input) INTEGER
  97.              The leading dimension of the array Q2.  LDQ2 >= max(1,N).
  98.  
  99.      INDXC   (input) INTEGER array, dimension (N)
  100.              The permutation used to arrange the columns of the deflated Q
  101.              matrix into three groups:  the first group contains non-zero
  102.              elements only at and above CUTPNT, the second contains non-zero
  103.              elements only below CUTPNT, and the third is dense.  The rows of
  104.              the eigenvectors found by SLAED4 must be likewise permuted before
  105.              the matrix multiply can take place.
  106.  
  107.      CTOT    (input) INTEGER array, dimension (4)
  108.              A count of the total number of the various types of columns in Q,
  109.              as described in INDXC.  The fourth column type is any column
  110.              which has been deflated.
  111.  
  112.      W       (input/output) REAL array, dimension (K)
  113.              The first K elements of this array contain the components of the
  114.              deflation-adjusted updating vector. Destroyed on output.
  115.  
  116.      S       (workspace) REAL array, dimension (LDS, K)
  117.              Will contain the eigenvectors of the repaired matrix which will
  118.              be multiplied by the previously accumulated eigenvectors to
  119.              update the system.
  120.  
  121.      LDS     (input) INTEGER
  122.              The leading dimension of S.  LDS >= max(1,K).
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SSSSLLLLAAAAEEEEDDDD3333((((3333FFFF))))                                                          SSSSLLLLAAAAEEEEDDDD3333((((3333FFFF))))
  137.  
  138.  
  139.  
  140.      INFO    (output) INTEGER
  141.              = 0:  successful exit.
  142.              < 0:  if INFO = -i, the i-th argument had an illegal value.
  143.              > 0:  if INFO = 1, an eigenvalue did not converge
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.